package com.woniu.command.handler;

import com.woniu.adapter.ApplicationAdapter;
import com.woniu.outlet.po.ApplicationDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AppCommandHandler {
    @Autowired
    private ApplicationAdapter applicationAdapter;

    public void addApplication(ApplicationDetail applicationDetail){
        applicationAdapter.addApplicationDetail(applicationDetail);
    }

    public void updateApplication(ApplicationDetail applicationDetail){
        applicationAdapter.updateApplicationDetail(applicationDetail);
    }

    public void delApplicationDetail(Integer id){
        applicationAdapter.deleteApplicationDetail(id);
    }

}
